OJS.Midi
Class MidiOut

java.lang.Object
  extended by OJS.Midi.MidiOut
All Implemented Interfaces:
javax.sound.midi.Receiver

public class MidiOut
extends java.lang.Object
implements javax.sound.midi.Receiver

Author:
shengz This class instance is a representation of the midi output device in software. It provides methods for accessing the midi device.

Constructor Summary
MidiOut(boolean useDefaultSynth)
           
 
Method Summary
 void close()
           
 void send(javax.sound.midi.MidiMessage message, long t)
          Send midi message to synthesizer.
 void SendRemote(javax.sound.midi.MidiMessage message, long t)
          Send the midi messages that are received from the network to the synthesizer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MidiOut

public MidiOut(boolean useDefaultSynth)
Parameters:
useDefaultSynth - - whether to use the Java synthesizer
Method Detail

close

public void close()
Specified by:
close in interface javax.sound.midi.Receiver

send

public void send(javax.sound.midi.MidiMessage message,
                 long t)
Send midi message to synthesizer. Messege's channel is over written to the local channel value.

Specified by:
send in interface javax.sound.midi.Receiver
See Also:
Receiver.send(javax.sound.midi.MidiMessage, long)

SendRemote

public void SendRemote(javax.sound.midi.MidiMessage message,
                       long t)
Send the midi messages that are received from the network to the synthesizer. Messege's channel is over written to the remote channel value.

Parameters:
message - - message to be sent
t - - delay